_init: function() {
this.parent();
- this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
-
this.toggleButton = new St.Button({ style_class: 'show-apps',
track_hover: true,
can_focus: true,
if (app == null)
return false;
- if (!this._settings.is_writable('favorite-apps'))
+ if (!global.settings.is_writable('favorite-apps'))
return false;
let id = app.get_id();
this._workId = Main.initializeDeferredWork(this._box, Lang.bind(this, this._redisplay));
- this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
-
this._appSystem = Shell.AppSystem.get_default();
this._appSystem.connect('installed-changed', Lang.bind(this, function() {
if (app == null || app.is_window_backed())
return DND.DragMotionResult.NO_DROP;
- if (!this._settings.is_writable('favorite-apps'))
+ if (!global.settings.is_writable('favorite-apps'))
return DND.DragMotionResult.NO_DROP;
let favorites = AppFavorites.getAppFavorites().getFavorites();
return false;
}
- if (!this._settings.is_writable('favorite-apps'))
+ if (!global.settings.is_writable('favorite-apps'))
return false;
let id = app.get_id();